Package-level declarations

Types

Link copied to clipboard
data class MenuItemData<T>(val id: T, val label: String, val state: MenuItemState = MenuItemState.ENABLED, val style: MenuItemStyle = MenuItemStyle.DEFAULT, val leadingElement: MenuLeadingElement? = null, val trailingElement: MenuTrailingElement? = null, val supportingText: String? = null, val showDivider: Boolean = false)

DHIS2 MenuItemData, class to control the MenuItem

Link copied to clipboard

DHIS2 MenuItemState, enum class to control the MenuItem state

Link copied to clipboard

DHIS2 MenuItemStyle, enum class to control the MenuItem style

Link copied to clipboard
Link copied to clipboard
sealed class MenuLeadingElement

DHIS2 MenuLeadingElement, class to control the MenuItem leading element

Link copied to clipboard
sealed class MenuTrailingElement

DHIS2 MenuTrailingElement, class to control the MenuItem trailing element

Functions

Link copied to clipboard
fun <T> DropDownMenu(modifier: Modifier = Modifier, items: List<MenuItemData<T>>, expanded: Boolean = false, selectedItemIndex: Int? = null, onDismissRequest: () -> Unit, onItemClick: (T) -> Unit)
Link copied to clipboard
fun <T> MenuItem(modifier: Modifier = Modifier, menuItemData: MenuItemData<T>, onItemClick: (T) -> Unit)

DHIS2 MenuItem Used for dropdown menu.